Hi Expert!
I have used AJAX Model popup, that work perfectly, but I want to close model popup auto when model post successfully.
AJAX Model popup code as below
<script type="text/javascript">
$(document).ready(function () {
$.ajaxSetup({ cache: false });
$("#openDialog").live("click", function (e) {
e.preventDefault();
var url = $(this).attr('href');
$("#dialog-edit").dialog({
title: 'Download',
autoOpen: false,
resizable: false,
height: 250,
width: 400,
show: { effect: 'drop', direction: "up" },
modal: true,
draggable: true,
open: function (event, ui) {
$(this).load(url);
},
close: function (event, ui) {
$(this).dialog('close');
}
});
$("#dialog-edit").dialog('open');
return false;
});
</script>
Thanks in advance
AVADHESH PATEL
11-Feb-2013